﻿using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.ComponentModel.Composition.Hosting;
using System.ComponentModel.Composition.Primitives;
using System.Linq;
using System.Text;
using Snowdreamist.Windows.Notification;

namespace Snowdreamist.ComponentModel.MEF.Notification
{
    [MetadataAttribute]
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class NotificationConsumerExportAttribute : ExportAttribute, INotificationConsumerMetadata
    {
        public NotificationConsumerExportAttribute(NotificationScope scope)
            : base(typeof(INotificationConsumer))
        {
            this.Scope = scope;
        }

        public NotificationScope Scope { get; set; }
    }
}